<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>hello bootstrap</title>
    <!--导入bootstrap的主样式-->
    <link rel="stylesheet" href="component/bootstrap-3.3.7-dist/css/bootstrap.min.css" type="text/css">
    <!-- 添加自己的样式 -->
    <style type="text/css">
        .row {
            /*background-color: #ccc;*/
            margin-bottom: 20px;
        }
        .row div {
            border-right: 5px solid white;
            padding: 10px 5px;
            text-align: center;
            border: 1px solid gray;
        }

    </style>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-xs-1">内容1内容1内容1内容1内容1内容1内容1</div>
        <div class="col-xs-1">内容2</div>
        <div class="col-xs-1">内容3</div>
        <div class="col-xs-1">内容4</div>
        <div class="col-xs-1">内容5</div>
        <div class="col-xs-1">内容6</div>
        <div class="col-xs-1">内容7</div>
        <div class="col-xs-1">内容8</div>
        <div class="col-xs-1">内容9</div>
        <div class="col-xs-1">内容10</div>
        <div class="col-xs-1">内容11</div>
        <div class="col-xs-1">内容12</div>
    </div>
    <div class="row">
        <div class="col-xs-4">内容1</div>
        <div class="col-xs-4">内容2</div>
        <div class="col-xs-4">内容3</div>
    </div>
    <div class="row">
        <div class="col-xs-6">内容1内容1内容1</div>
        <div class="col-xs-6">内容2</div>
    </div>

    <div class="row">
        <div class="col-xs-12">内容1</div>
    </div>

    <div class="row">
        <div class="col-lg-4 col-md-6">内容1</div>
        <div class="col-lg-4 col-md-6">内容2</div>
    </div>

    <div class="row">
        <div class="col-md-offset-4 col-md-4">内容</div>
    </div>

    <!-- 列排序 -->
    <div class="row">
        <div class="col-lg-3 col-lg-push-9">内容1</div>
        <div class="col-lg-9 col-lg-pull-3">内容2</div>
    </div>

    <!-- 列嵌套 -->
    <div class="row">
        <div class="col-md-9">
            level1: .col-md-9
            <div class="row">
                <div class="col-xs-8 col-md-6">level2:col-md-6</div>
                <div class="col-xs-4 col-md-6">level2:col-md-6</div>
            </div>

        </div>
        <div class="col-md-3">level1: .col-md-3</div>
    </div>

</div>
</body>
</html>